{extend name="base" /}
{block name="body"}
<style>
    table tr td:first-child {

    }

</style>
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/user/index')}">用户管理</a></li>
            <!--<li class=""><a href="{:url('admin/user/add')}">添加用户</a></li>-->
            <li class="layui-this">查看用户</li>
        </ul>

        <div class="layui-form">
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>

                <tbody>
                <tr>
                    <td rowspan="3" style="width: 239px;background-color: #F9FBFD;">
                        <img style="width:72px;height:72px;border-radius: 100%" src="{$user.photo}" alt="">
                        <div> {$user.username}</div>
                        <div><button style="height:28px;line-height:28px;" class="layui-btn layui-btn-danger layui-btn-radius">{$user.gradename}</button></div>
                    </td>
                    <td  style=" width: 123px;background-color: #F9FBFD;">用户ID</td>
                    <td>{$user.id}</td>
                    <td  style=" width: 123px;background-color: #F9FBFD">所在城市</td>
                    <td>{$user.address}</td>
                </tr>
                <tr>

                    <td style=" width: 123px;background-color: #F9FBFD;">昵称</td>
                    <td>{$user.username}</td>
                    <td  style=" width: 123px;background-color: #F9FBFD;">手机号码</td>
                    <td>{$user.mobile}</td>
                </tr>
                <tr>

                    <td  style=" width: 123px;background-color: #F9FBFD;">性别</td>
                    <td>{if condition="$user.sex==1"}男{else}女{/if}</td>
                    <td  style=" width: 123px;background-color: #F9FBFD;">注册时间</td>
                    <td>{$user.create_time}</td>
                </tr>
                </tbody>
            </table>
        </div>


        <div class="layui-form">
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                <tr>
                    <th>积分值</th>
                    <th>收藏资讯</th>
                    <th>收藏视频</th>
                    <th>收藏测评</th>
                    <th>收藏图片</th>
                    <th>评论总次数</th>
                    <th>点赞总次数</th>
                    <th>点踩总次数</th>
                    <th>分享总次数</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{$user.integral}</td>
                    <td>{$user.collect_know_num}</td>
                    <td>{$user.collect_video_num}</td>
                    <td>{$user.collect_eva_num}</td>
                    <td>{$user.collect_img_num}</td>
                    <td>{$user.comment_num}</td>
                    <td>{$user.ding_num}</td>
                    <td>{$user.cai_num}</td>
                    <td>{$user.share_num}</td>
                </tr>
                </tbody>
            </table>
        </div>

    </div>
</div>
{/block}

{block name="script"}
<script>

</script>

{/block}